package smallchange.oop;

import java.util.Date;
import java.util.Scanner;
public class SmallChangeAPP {
    public static void main(String[] args) {
        smallchangeOOP smallchangeOOP = new smallchangeOOP();
        Scanner scanner = new Scanner(System.in);

        do{
            smallchangeOOP.menu();
            System.out.print("请选择:>");
            int input = scanner.nextInt();
            switch (input)
        {
                case 1:
                    smallchangeOOP.detail();
                    break;
                case 2:
                    smallchangeOOP.income();
                    break;
                case 3:
                    smallchangeOOP.pay();
                    break;
                case 4:
                    smallchangeOOP.exit();
                    break;
                default:
                    System.out.println("选择错误!");
                    break;
            }

        }while(smallchangeOOP.flag);
    }
}
